package com.cn.yunhe.rentcars.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.cn.yunhe.rentcars.mapper.CityMapper;

@Controller
public class HelloController {
	
	@Autowired
	private CityMapper cityMapper;
	
	@RequestMapping("/hello")
	public String hello() {
		
		System.out.println(cityMapper.selectCityById(1).toString());
		
		return "hello";
	}


}
